package com.yuanhua.xcxmng.wechat.exception;

/**
 * @author hzy24985
 * @version $Id: WechatBaseException, v 0.1 2018/8/7 下午4:16 hzy24985 Exp $
 */
public class WechatBaseException extends Exception {
    private int errorCode = -1;

    public WechatBaseException(int errorCode) {
        this.errorCode = errorCode;
    }

    public WechatBaseException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public WechatBaseException(String message, Throwable cause, int errorCode) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public WechatBaseException(Throwable cause, int errorCode) {
        super(cause);
        this.errorCode = errorCode;
    }

    public WechatBaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int errorCode) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
